﻿using System;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;

namespace FlyingEye.Users.Models
{
    /// <summary>
    /// 创建用户的工单
    /// </summary>
    public class UserCreationOrderModel : Entity<Guid>, IHasCreationTime
    {
        public string UserName { get; set; }

        public string Password { get; set; }

        public UserPermissions Permission { get; set; }

        /// <summary>
        /// 是否审批
        /// </summary>
        public bool IsApproved { get; set; }

        /// <summary>
        /// 是否同意
        /// </summary>
        public bool IsAgree { get; set; }

        public DateTime CreationTime { get; }

        public UserCreationOrderModel(string userName, string password, UserPermissions permission)
        {
            Id = Guid.NewGuid();
            this.CreationTime = DateTime.Now;
            UserName = userName;
            Password = password;
            Permission = permission;
        }
    }
}
